package cn.mdx.mapper;

import cn.mdx.pojo.Demandlist;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public interface DemandlistMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Demandlist record);

    int insertSelective(Demandlist record);

    Demandlist selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Demandlist record);

    int updateByPrimaryKey(Demandlist record);

    ArrayList<Integer> getDemandsId(Integer nid);

    /*--@author 宋飞翔=========================================================================--*/

    int deteByDid(@Param("did") Integer did);

    List<Demandlist> selectByNid(@Param("nid") Integer nid);
}